<?php 
$modullist = Modul::model()->findAllByAttributes(array('id' => '4'));
foreach ($modullist as $modul) {
    $modul4 = $modul;
}
?>
<div class="clearfix" id="content">
    
    <div id="content-area">
        <a href="http://www.baykalem.com" target="_new"><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/bay_kalem_banner.gif" 
                style="border: 1px solid #BFBFBF; float: right; margin-bottom: 10px;"/>
        </a>    
       

    </div> <!-- end #content-area -->


    <div id="sidebar">

        <div class="sidebar-block ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabbed" style="display: block;">
            <ul class="clearfix ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" id="tabbed-area">
                <li class="first ui-corner-top  ui-tabs-selected ui-state-active"><a href="#recent-tabbed">Duyurular</a></li>
                <li class="second ui-corner-top ui-state-default"><a href="#popular-tabbed">Haberler</a></li>
                <li class="last ui-corner-top ui-state-default"><a href="#random-tabbed">Sosyal Medya</a></li>
            </ul>

            <div class="widget ui-tabs-panel ui-widget-content ui-corner-bottom" id="recent-tabbed" style="">
                <h3 class="widgettitle">Aydan'dan...</h3>
                <?php
                 $this->widget('zii.widgets.CListView', array(
                                'dataProvider' => new CActiveDataProvider(
                                   'Duyuru',
                                  array(
                                     'pagination'=>array('pageSize'=>10),
                                     'criteria'=>array('order'=>'yayin_zamani ASC'))),
                                 'itemView'=>'/duyuru/_view_site',
                                 'summaryText'=>''
                            ));
                ?>	
            </div> <!-- end #recent-tabbed -->

            <div class="widget ui-tabs-panel ui-widget-content ui-corner-bottom  ui-tabs-hide" id="popular-tabbed" style="">
                <h3 class="widgettitle">Sektörden...</h3>
                <?php
                 $this->widget('zii.widgets.CListView', array(
                                'dataProvider' => new CActiveDataProvider(
                                'Haber',
                                  array(
                                     'pagination'=>array('pageSize'=>10),
                                     'criteria'=>array('order'=>'yayin_zamani ASC'))),
                                 'itemView'=>'/haber/_view_site',
                                 'summaryText'=>''
                            ));
                ?>
            </div> <!-- end #recent-tabbed -->

            <div class="widget ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="random-tabbed" style="">
               <!-- <h3 class="widgettitle">Medyadan...</h3>-->
               
                 
               <a class="twitter-timeline"  
                  href="https://twitter.com/AydanYayincilik"  
                  data-widget-id="373809118122741760">@AydanYayincilik kullanıcısından Tweetler</a>
               <script>
                   !function(d,s,id){
                            var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';
                            if(!d.getElementById(id)){
                                js=d.createElement(s);
                                js.id=id;
                                js.src=p+"://platform.twitter.com/widgets.js";
                                fjs.parentNode.insertBefore(js,fjs);
                            }
                    }
                   (document,"script","twitter-wjs");
               </script>
               
               
               
               
            </div> <!-- end #recent-tabbed -->
        </div> <!-- end .sidebar-block-->

    </div> <!-- end #sidebar -->

</div>